package com.p2p.constant;

/**
 * 错误常量类
 * 定义FRONTEND_INTERFACE.md文档中提到的错误码
 */
public class ErrorConstants {

    /**
     * 提供的密钥无效
     */
    public static final String INVALID_KEY = "INVALID_KEY";

    /**
     * 提供的令牌无效
     */
    public static final String INVALID_TOKEN = "INVALID_TOKEN";

    /**
     * 未提供ID、token或key参数
     */
    public static final String INVALID_WS_PARAMETERS = "INVALID_WS_PARAMETERS";

    /**
     * 服务器已达到并发用户限制
     */
    public static final String CONNECTION_LIMIT_EXCEED = "CONNECTION_LIMIT_EXCEED";    

    /**
     * 服务器已满
     */
    public static final String SERVER_FULL = "SERVER_FULL";    

    /**
     * 无效的API密钥或令牌
     */
    public static final String INVALID_KEY_OR_TOKEN = "INVALID_KEY_OR_TOKEN";

    /**
     * 目标客户端未找到
     */
    public static final String TARGET_NOT_FOUND = "TARGET_NOT_FOUND";

    /**
     * 未知消息类型
     */
    public static final String UNKNOWN_MESSAGE_TYPE = "UNKNOWN_MESSAGE_TYPE";

    /**
     * 消息处理错误
     */
    public static final String MESSAGE_PROCESSING_ERROR = "MESSAGE_PROCESSING_ERROR";

}